#ifndef CTABLESERVICESTATE_H
#define CTABLESERVICESTATE_H

#include "AbstractTable.h"

class CTableServiceState : public AbstractTable
{
    Q_OBJECT
    explicit CTableServiceState(QObject *parent = nullptr);
public:
    static CTableServiceState* getInstance();

    INT_CELL(currentUser,setCurrentUser,"Id","Role")

    void setCurrentUser(const QString &userId);
    QString currentUser();

    void setScreenState(const int &state);
    int screenState();

    void setMdmLocked(const bool locked);
    bool mdmLocked();

    void setMdmActive(const bool active);
    bool mdmActive();

    void setMdmPasswdPolicies(const int &policies);
    int mdmPasswdPolicies();

private:
    void init();

};

#endif // CTABLESERVICESTATE_H
